package com.xt.core.service.hibernate;

import java.util.List;

import com.xt.core.service.hibernate.BasicServiceImpl;

import com.xt.core.data.FileObject;
import com.xt.core.dao.FileDao;
import com.xt.core.service.FileService;

/**
 * 
 * hibernate implementation service class to get file-object information
 * 
 * @author txiao
 * @version Revision: 1.0, Date: 16.10.2009
 *
 */
public class FileServiceImpl extends BasicServiceImpl<FileObject, Long> implements FileService{
	 
	private FileDao fileDao; //get instance from applicationcontext.xml
	
	/**
	 * Constructor
	 * 
	 * @param FileDao
	 *            the FileDao object
	 */
	public FileServiceImpl(FileDao fileDao) {
		super(fileDao);
		this.setFileDao(fileDao);
	}

	public void setFileDao(FileDao fileDao) {
		this.fileDao = fileDao;
	}

	public FileDao getFileDao() {
		return fileDao;
	}
}
